package com.qf.mapper;/*
 *徐韬
 *2021/10/25
 *20:43
 */

import com.qf.pojo.TDirtyword;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface dirtywordMapper {
    @Select("select * from t_dirtyword where id = #{id}")
    TDirtyword selectById(Long id);
    @Insert("insert into t_dirtyword values(0,#{dirtyword},#{owntype},#{creater}) ")
    int insert(TDirtyword tDirtyword);
    @Select("select * from t_dirtyword ")
    List<TDirtyword> selectAll();
    int updateDirtywordById(TDirtyword tDirtyword);
    int deletedritywordByids(@Param("ids") List<Integer> ids);
    int deletedirtywordByidsandcreater(@Param("ids") List<Integer> ids,@Param("creater") Long creater);
    List<TDirtyword> showAllByparams(TDirtyword tDirtyword);

}
